home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / pdcurs21 / nonport / waddraws.c < prev    next >
C/C++ Source or Header  |  1993-06-18  |  1KB  |  52 lines

  1. #define    CURSES_LIBRARY    1
  2. #include <curses.h>
  3. #undef    waddeawstr
  4.  
  5. #ifdef PDCDEBUG
  6. char *rcsid_waddraws = "$Header: C:\CURSES\nonport\RCS\waddraws.c 2.1 1993/06/18 20:22:20 MH Rel MH $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   waddrawstr()    - add raw string to window
  15.  
  16.   PDCurses Description:
  17.      The *raw*() routines output 8 bit values.  These contrast to their
  18.      normal counterparts which output 7 bit values and convert control
  19.      character to the ^X notation.
  20.  
  21.      str is a standard 8 bit character string WITHOUT embedded attributes.
  22.  
  23.   PDCurses Return Value:
  24.      The waddrawstr() function returns OK on success and ERR on error.
  25.  
  26.   PDCurses Errors:
  27.      It is an error to call this function with a NULL window pointer.
  28.  
  29.   Portability:
  30.      PDCurses    int waddrawstr( WINDOW* win, char* str );
  31.  
  32. **man-end**********************************************************************/
  33.  
  34. int    waddrawstr(WINDOW *win, char *str)
  35. {
  36. #ifdef PDCDEBUG
  37.     if (trace_on) PDC_debug("waddrawstr() - called: string %s\n",str);
  38. #endif
  39.  
  40.     if (win == (WINDOW *)NULL)
  41.         return( ERR );
  42.  
  43.     while (*str)
  44.     {
  45.         if (waddrawch(win, *str++) == ERR)
  46.         {
  47.             return( ERR );
  48.         }
  49.     }
  50.     return( OK );
  51. }
  52.